﻿using Microsoft.EntityFrameworkCore.Metadata.Internal;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace XinjeMesProgram.Entities.Material
{
    /// <summary>
    /// 物料追踪表头（暂时放弃）
    /// </summary>
    public class MaterialEntity
    {
        /// <summary>
        /// Key标识
        /// </summary>
        [Key]
        [Column(TypeName = "nvarchar(50)")]
        public string? Key { get; set; }

        /// <summary>
        /// 表头名称
        /// </summary>
        [Column(TypeName = "nvarchar(50)")]
        public string? Title { get; set; }

        /// <summary>
        /// 对齐方式
        /// </summary>
        [Column(TypeName = "char(16)")]
        public string? Align { get; set; }

        /// <summary>
        /// 长度
        /// </summary>
        [Column(TypeName = "int")]
        public int? Width { get; set; }
    }
}
